package com.leo.ktvplayer.bluetooth.bletask;

/**
 * Created by LeoLu on 2017/5/10.
 */

public class BleReceiveMoney implements IBleDataEngine {
    @Override
    public void excuteData() {

    }

    @Override
    public int receiveMoney(byte data) {
       if(data == 0x40){
           return 1;
       } else if (data == 0x41){
           return 5;
       } else if (data == 0x42){
           return 10;
       } else if (data == 0x43){
           return 20;
       } else if (data == 0x44){
           return 50;
       } else if (data == 0x45){
           return 100;
       }
        return -1;
    }
}
